<?php 
/**
 * 网站配置
 */
class WebSetController extends CommonController{
	private $_model;
	public function __init(){
		$this->_model = K('WebSet');
	}
	/**
	 * 默认显示配置项
	 */
	public function index(){
		//修改配置项
		if(IS_POST){
			$this->_model->update_config();
			$this->success('修改成功');
		}
		$this->display();
	}
	
}












